#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()
def printScale(text):
    print 'text=', text
    print 'v=', v.get()
v = StringVar()

sl = Scale(root,from_=0, to=100.0, resolution=0.0001,orient=HORIZONTAL, variable=v, command=printScale)

sl.set(50)

print sl.get()
sl.pack()

root.mainloop()
